package com.site.wisdom_construction.service.healthEpidemicModel;

import com.site.wisdom_construction.dao.healthEpidemicModel.WarningRecordDao;
import com.site.wisdom_construction.entity.healthEpidemicModel.WarningRecord;
import com.site.wisdom_construction.statisticsResult.AntiepidemicInformationByTypeName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/5/7
 * @Description
 */
@Service
public class WarningRecordService implements WarningRecordDao {
    @Autowired
    private WarningRecordDao warningRecordDao;

    @Override
    public int insertWarningRecord(Map map) {
        return warningRecordDao.insertWarningRecord(map);
    }

    @Override
    public int deleteWarningRecord(Map map) {
        return warningRecordDao.deleteWarningRecord(map);
    }

    @Override
    public int updateWarningRecord(Map map) {
        return warningRecordDao.updateWarningRecord(map);
    }

    @Override
    public List<WarningRecord> findWarningRecordByPage(Map map) {
        return warningRecordDao.findWarningRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return warningRecordDao.Total(map);
    }

    @Override
    public int countWarningRecordByWarningTypeTw(Map map) {
        return warningRecordDao.countWarningRecordByWarningTypeTw(map);
    }

    @Override
    public int countWarningRecordByWarningTypeXl(Map map) {
        return warningRecordDao.countWarningRecordByWarningTypeXl(map);
    }

    @Override
    public int countWarningRecordByWarningTypeXy(Map map) {
        return warningRecordDao.countWarningRecordByWarningTypeXy(map);
    }

    @Override
    public int countWarningRecordByWarningTypeXY(Map map) {
        return warningRecordDao.countWarningRecordByWarningTypeXY(map);
    }

    @Override
    public List<AntiepidemicInformationByTypeName> countWarningRecordByTime(Map map) {
        return warningRecordDao.countWarningRecordByTime(map);
    }
}
